using System;
using Newtonsoft.Json;
using System.Text;
using System.Data;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace ST.Buz.Base.Entity
{
    /// <summary>
    /// 表记录操作日志
    /// </summary>
    [Table("Sys_TableLog")]
    public partial class Sys_TableLog
    {

        [Key]
        [Column("ID")]
        public int ID { get; set; }

        /// <summary>
        /// 日志编号（表代码(3位）+记录ID（10位）+时间（14位）+随机值（5位））
        /// </summary>
        [Column("LogNo")]
        [StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
        public string LogNo { get; set; }

        /// <summary>
        /// 表代码
        /// </summary>
		[Column("TableID")]
        public int TableID { get; set; }

        /// <summary>
        /// 原表记录ID
        /// </summary>
        [Column("InfoID")]
        public int InfoID { get; set; }

        /// <summary>
        /// 日志类别
        /// </summary>
        [Column("LogType")]
        [StringLength(32, ErrorMessage = "{0}长度不能超过{1}")]
        public string LogType { get; set; }

        /// <summary>
        /// 日志内容
        /// </summary>
        [Column("LogContent")]
        public string LogContent { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Column("LogTime")]
        public DateTime LogTime { get; set; }

        /// <summary>
        /// 操作人员ID
        /// </summary>
        [Column("LogManID")]
        [JsonIgnore]
        public int LogManID { get; set; }

        /// <summary>
        /// 操作人员
        /// </summary>
        [Column("LogManName")]
        [StringLength(20, ErrorMessage = "{0}长度不能超过{1}")]
        public string LogManName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Column("LogManIP")]
        [StringLength(40, ErrorMessage = "{0}长度不能超过{1}")]
        public string LogManIP { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Column("OrgID")]
        public int OrgID { get; set; }
    }
}

